using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Archiving
{
    /// <summary>
    /// <para>Enable Archiving</para>
    /// <para>Enables archiving on a table, feature class, or feature dataset.</para>
    /// <para>启用对表、要素类或要素数据集的存档。</para>
    /// </summary>    
    [DisplayName("Enable Archiving")]
    public class EnableArchiving : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public EnableArchiving()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset</para>
        /// <para>The name of the dataset on which archiving will be enabled.</para>
        /// <para>将启用存档的数据集的名称。</para>
        /// </param>
        public EnableArchiving(object _in_dataset)
        {
            this._in_dataset = _in_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Enable Archiving";

        public override string CallName => "management.EnableArchiving";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_dataset, _out_dataset];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The name of the dataset on which archiving will be enabled.</para>
        /// <para>将启用存档的数据集的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Updated Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        public EnableArchiving SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}